package com.example.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pojo.dto.PasswordDTO;
import com.example.pojo.entity.Account;
import com.example.pojo.entity.Admin;

import java.util.List;

public interface AdminService extends IService<Admin> {
    void add(Admin admin);

    void deleteById(Integer id);

    void deleteBatch(List<Integer> ids);

    Admin selectById(Integer id);

    List<Admin> selectAll(Admin admin);

    Page<Admin> selectPage(Admin admin, Integer pageNum, Integer pageSize);

    void updateAdmin(Admin admin);

    void register(Account account);

    Admin login(Admin account);

    void updatePassword(Admin admin, PasswordDTO passwordDTO);

    Page<Admin> getByPageIds(String ids, String name, Integer pageNum, Integer pageSize);
}
